{include file=header.html}
<script type="text/javascript" src="{lib file=search_goods.js}?v={$ver_info}" charset="utf-8"></script>
<script type="text/javascript" src="{res file=js/jquery.highlight.js}"></script>
<script type="text/javascript">
    $(function(){
        $('.list-plw .cr-title').highlight(["{$words}"],{ element: 'em', className: 'search-em'}); 
    });
</script>
<!--content start-->
<div class="content">
  <ul class="location f-cb" id="location">
    <!--{if !$param.cate_id}-->
    <li class="locat-li">
      <a href="{url app=search}">全部商品</a>
    </li>
    <!--{/if}-->
    <!--商品分类当前位置-->
    <!--{if $curlocal_gcategory}-->
    <!--{foreach from=$curlocal_gcategory item=curlocal}-->
    <li class="locat-li">
      <a href="javascript:void(0);" class="locat-a" title="{$curlocal.cate_name|escape}">
        {$curlocal.cate_name|escape} <i>&#xe6ca;</i>
      </a>
      <div class="locat-more f-cb">
        <!--{foreach from=$curlocal.category item=category}-->
        <dl>
          <dt>
            <a href="{url app=search&cate_id=$category.id}" title="{$category.value|escape}" {if $param.cate_id eq $category.id }class="active" {/if}>{$category.value|escape}</a>
          </dt>
          <!--{if $category.children}-->
          <!--{foreach from=$category.children item=children}-->
          <dd>
            <a href="{url app=search&cate_id=$children.id}" title="{$children.value|escape}" >{$children.value|escape}</a>
          </dd>
          <!--{/foreach}-->
          <!--{/if}--> </dl>
        <!--{/foreach}--> </div>
    </li>
    <li class="locat-li">></li>
    <!--{/foreach}-->
    <!--{/if}-->

    <!--搜索条件-->
    <!--{if $filters}-->
    <!--{foreach from=$filters key=key item=filter}-->
    <!--{if $key eq 'attr_value'}-->
    <!--{foreach from=$filter item=fattr}-->
    <li class="locat-li" ectype="li_filter">
      <a attr_id="{$fattr.attr_id}" ecvalue="{$fattr.key}" filterss="{$fattr.value}" href="javascript:void(0);" class="locat-c">{$fattr.name}</a>
    </li>
    <!--{/foreach}-->
    <!--{else}-->
    <li class="locat-li" ectype="li_filter">
      <a ecvalue="{$filter.key}" href="javascript:void(0);" class="locat-c">{$filter.name}: {$filter.value}</a>
    </li>
    <!--{/if}-->
    <!--{/foreach}-->
    <!--{/if}-->

    <li>
      <div class="location-input f-cb">
        <input type="text" value="{if $search_keyword}{$search_keyword}{else}在此条件下查找{/if}" onfocus="this.value=''" onblur="if(!value){this.value=defaultValue}" id="location_input" />
        <a href="javascript:void(0);" onclick="get_keywords()" class="fixpng"></a>
      </div>
    </li>
    <!--{if $filters}-->
    <li class="locat-del">
      <a href="javascript:void(0)" onclick="emptyParam()" class="locat-a locat-b" rel="nofollow">清空</a>
    </li>
    <!--{/if}--> </ul>

  <!--{if $param.cate_id}-->
  <!--{if $goods_attr }-->
  <!--商品最底级分类属性-->
  <div class="selectwrap" attr_value="{$attr_value}" id="selectwrap" {if !$goods_list}style="display: none;"{/if}>
    <!--{foreach from=$goods_attr item=attr}-->
    <dl class="twrap f-cb" id="attr_id_{$attr.attr_id}">
      <dt>{$attr.attr_name|escape}：</dt>
      <dd>
        <ul class="f-cb">
          <!--{foreach from=$attr.children item=children}-->
          <li>
            <a ecvalue="attr_value" filterss="{$children.gattr_id}"  attr_id="{$children.attr_id}" href="javascript:void(0);" title="{$children.attr_value|escape}">{$children.attr_value|escape}</a>
          </li>
          <!--{/foreach}--> </ul>
      </dd>
    </dl>
    <!--{/foreach}--> </div>
  <!--{else}-->
  <!--{if $gcategory_list and !$is_leaf}-->
  <!--{if $param.layer eq 1}-->
  <!--商品一级分类-->
  <div class="selectwrap">
    <!--{foreach from=$gcategory_list.children item=gcategory}-->
    <dl class="twrap f-cb">
      <dt>{$gcategory.value|escape}：</dt>
      <dd>
        <ul class="f-cb">
          <!--{foreach from=$gcategory.children item=children}-->
          <li>
            <a href="{url app=search&cate_id=$children.id}" title="{$children.value|escape}">{$children.value|escape}</a>
          </li>
          <!--{/foreach}--> </ul>
      </dd>
    </dl>
    <!--{/foreach}--> </div>
  <!--{else}-->
  <!--商品分类不为一级和最底级-->
  <div class="selectwrap">
    <dl class="twrap f-cb">
      <dt>分类：</dt>
      <dd>
        <ul class="f-cb">
          <!--{foreach from=$gcategory_list.children item=gcategory}-->
          <li>
            <!--{if $smarty.get.order}-->
            <a href="{url app=search&cate_id=$gcategory.id&order=$smarty.get.order}" title="{$gcategory.value|escape}">{$gcategory.value|escape}</a>
            <!--{else}-->
            <a href="{url app=search&cate_id=$gcategory.id}" title="{$gcategory.value|escape}">{$gcategory.value|escape}</a>
            <!--{/if}--> </li>
          <!--{/foreach}--> </ul>
      </dd>
    </dl>
  </div>
  <!--{/if}-->
  <!--{/if}-->
  <!--{/if}-->
  <!--{else}-->
  <!--没有分类和没有搜索关键字-->
  <!--{if !$search_keyword}-->
  <div class="selectwrap">
    <!--{foreach from=$all_gcategory_list item=gcategory}-->
    <dl class="twrap f-cb">
      <dt>{$gcategory.value|escape}：</dt>
      <dd>
        <ul class="f-cb">
          <!--{foreach from=$gcategory.children item=children}-->
          <li>
            <!--{if $smarty.get.order}-->
            <a href="{url app=search&cate_id=$children.id&order=$smarty.get.order}" title="{$children.value|escape}">{$children.value|escape}</a>
            <!--{else}-->
            <a href="{url app=search&cate_id=$children.id}" title="{$children.value|escape}">{$children.value|escape}</a>
            <!--{/if}--> </li>
          <!--{/foreach}--> </ul>
      </dd>
    </dl>
    <!--{/foreach}--> </div>
  <!--{/if}-->
  <div class="selectmore">
    <!-- <a onclick="wllistfn.select(this)">
    <span>更多选项</span> <i></i>
  </a>
  -->
</div>
<!--{/if}-->

<!-- <div class="select-intro f-cb">
<div class="si-left">您是不是要找：</div>
<div class="si-right">
  <a href="" target="_blank">水晶工艺品</a>
  <a href="" target="_blank">水艺品</a>
  <a href="" target="_blank">水晶工艺</a>
</div>
</div>
-->
<!--{if $goods_list}-->
<div class="listpwrap">
<div class="list-pl">
  <div class="list-plt f-cb">
    <div class="list-pltl" id="list-pltl">
      <ul class="f-cb">
        <li>
          <a href="javascript:void(0);" ectype="order" orders="" class="{if $orders eq ''}active{/if}" rel="nofollow">综合</a>
        </li>
        <li>
          <a href="javascript:void(0);" ectype="order" orders="sales-desc" class="{if $orders eq 'sales-desc'}active{/if} arrows" rel="nofollow">
            销量
            <i>&#xe6c2;</i>
          </a>
        </li>
        <li>
          <a href="javascript:void(0);" ectype="order" orders="add_time-desc" class="{if $orders eq 'add_time-desc'}active{/if} arrows" rel="nofollow">
            上架时间
            <i>&#xe6c2;</i>
          </a>
        </li>
        <li>
          <a href="javascript:void(0);" ectype="order" {if $orders eq 'price-asc'}orders="price-desc"{else}orders="price-asc"{/if}  class="{if $orders eq 'price-asc' || $orders eq 'price-desc'}active{/if} arrows" rel="nofollow">
            价格
              {if $orders eq 'price-asc'}
            <i>&#xe6c3;</i>
            {else}
            <i>&#xe6c2;</i>
            {/if}
          </a>
        </li>
      </ul>
    </div>
    <div class="filter-price-wrap">
      <div class="filter-price">
        <div class="filter-pricet">
          <i>￥</i>
          <input name="start_price" id="start_price" value="{$param.price.min}" maxlength="8" onkeyup="this.value=this.value.replace(/\D/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="start_price" type="text" onfocus="wllistfn.filter_pf(this)">
          <i>-</i>
          <input name="end_price" value="{$param.price.max}" id="end_price" maxlength="8" onkeyup="this.value=this.value.replace(/\D/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="end_price" type="text" onfocus="wllistfn.filter_pf(this)"></div>
        <div class="filter-priceb f-cb">
          <a id="filter-pba" onclick="wllistfn.filter_reset(this)" rel="nofollow">清空</a>
          <a href="javascript:void(0)" onclick="get_price()" id="filter-pbb" rel="nofollow">确定</a>
        </div>
      </div>
    </div>
    <div class="filter-price-wrap">
      <div class="filter-price">
        <div class="filter-pricet">
          <i>起订量</i>
          <input name="start_num" id="start_num" value="{$param.start_stock.max}" maxlength="8" onkeyup="this.value=this.value.replace(/\D/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="start_num" type="text" value="{if $gets.start_stock}{$gets.start_stock}{/if}" onfocus="wllistfn.filter_pf(this)">
          <i>件以下</i>
        </div>
        <div class="filter-priceb f-cb">
          <a id="filter-pbc" onclick="wllistfn.filter_reset(this)" rel="nofollow">清空</a>
          <a href="javascript:void(0)" onclick="get_start_num()" id="filter-pbd" rel="nofollow">确定</a>
        </div>
      </div>
    </div>
    <div class="filter-next">
      {$page_info.curr_page}/{$page_info.page_count}&nbsp;&nbsp;&nbsp;&nbsp;
      <!--{if $page_info.prev_link}-->
      <a href="{$page_info.prev_link}" rel="nofollow">&#xe6d1;</a>
      <!--{else}-->
      <a style="border-color:#ccc;color:#ccc" href="javascript:;" rel="nofollow">&#xe6d1;</a>
      <!--{/if}-->
      <!--{if $page_info.next_link}-->
      <a href="{$page_info.next_link}" rel="nofollow">&#xe6d4;</a>
      <!--{else}-->
      <a style="border-color:#ccc;color:#ccc" href="javascript:;" rel="nofollow">&#xe6d4;</a>
      <!--{/if}--> </div>
    <div class="filter-result">找到商品：{$page_info.item_count}件</div>
  </div>
  <!--商品列表-->
  <ul class="list-plw f-cb">
    <!--{foreach from=$goods_list item=goods name=goods_n}-->
    <li class="j-list-li{if $smarty.foreach.goods_n.iteration % 5 == 0 } mgr-none{/if}">
      <!-- {if $goods.is_promotion eq '1'} -->
      <div class="pro-icon fixpng">
        {$goods.act_name}
      </div>
      <!-- {/if} -->
      <div>
        <a href="{url app=goods&id=$goods.goods_id}" title="{$goods.goods_name|escape}" target="_blank">
          <img width="221" height="221" class="imgload" alt="{$goods.goods_name|escape}" src="{res file=images/icon/blank.gif}" data-original="{$goods.default_image}" />
        </a>
      </div>
      <p class="cr-price f-cb">
        <span class="pro-price">{if $goods.is_promotion eq '1' && $goods.promote_price gt 0}{$goods.promote_price|price}{else}{$goods.price|price}{/if}</span>
        <!-- {if $goods.is_promotion eq '1' && $goods.promote_price gt 0} -->
        <i class="real-price">{$goods.price|price}</i>
        <!-- {/if} -->
        <!-- {if $goods.shipping_id eq '0' or $goods.free_shipping eq '1'} -->
        <i class="is-free b-radius">包邮</i>
        <!-- {/if} -->
      </p>
      <p class="cr-title">
        <a href="{url app=goods&id=$goods.goods_id}" title="{$goods.goods_name|escape}" target="_blank">{$goods.brand|escape} {$goods.goods_name|escape}</a>
      </p>
      <p class="cr-shop">
        <a href="{url app=store&id=$goods.store_id}" title="{$goods.store_name|escape}" target="_blank">{$goods.store_name|escape}</a>
      </p>
      <div class="act-wrap f-cb">
        <a href="javascript:collect_goods({$goods.goods_id})" class="act-left b-radius" rel="nofollow">收藏</a>
        <a href="{url app=goods&id=$goods.goods_id}" target="_blank" class="act-right b-radius">加入购物车</a>
      </div>
    </li>
    <!--{/foreach}--> 
  </ul>
  <div class="goods-page-wrap f-cb">
    <div class="goods-page">{include file=goods.page.bottom.html}</div>
  </div>
</div>
</div>
<!--{else}-->
<div class="no-result">
<table>
  <tr>
    <td>
      <p>
        <img src="{res file=images/icon/no_result.png}" />
      </p>
      <p> <strong>抱歉，没有找到相关产品。</strong>
        <br/>
        您可以联系万菱导购团队，我们将免费帮你找货。
        <br/>
        在线QQ：972646420
        <br/>
        电话：4008-333-685
        <br/>
      </p>
      <p>
        <a  href="{url app=search}" class="linkbtn" >查看全部商品>></a>
      </p>
    </td>
  </tr>
</table>
</div>
<!--{/if}-->
<!--{if $com_list}-->
<dl class="recommend mt20">
<dt>
  <h4>我们为您推荐</h4>
</dt>
<dd>
  <ul class="slide20 f-cb" id="slide20">
    <!--{foreach from=$com_list item=item}-->
    <li>
      <a href="{url app=goods&id=$item.goods_id}" title="{$item.goods_name|escape}" target="_blank">
        <img src="{$item.default_image}" alt="{$item.goods_name|escape}" width="146" height="146" />
      </a>
      <p>
        <a href="{url app=goods&id=$item.goods_id}" title="{$item.goods_name|escape}" target="_blank" class="re-title">{$item.goods_name|escape}</a>
      </p>
      <p class="price">{$item.price|price}</p>
    </li>
    <!--{/foreach}--> </ul>
  <div class="dragwrap" id="dragwrap">
    <div class="xx" id="dragxx"></div>
    <div id="dragmove" class="move fixpng"></div>
  </div>
</dd>
</dl>
<!--{/if}-->
<!-- {if $goods_history} -->
<div class="visited-wrap">
<p class="v-title">最近浏览</p>
<ul class="f-cb">
  <!--{foreach from=$goods_history item=item}-->
  <li>
    <a href="{url app=goods&id=$item.goods_id}" title="{$item.goods_name|escape}" target="_blank">
      <img src="{$item.default_image}" alt="{$item.goods_name|escape}" width="80" height="80" />
    </a>
    <p class="v-price">{$item.price|price}</p>
  </li>
  <!--{/foreach}-->
</ul>
</div>
<!-- {/if} -->
</div>
{include file=footer.index.html}
<!--登录弹窗-->
<script type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.1_31_1.js}"></script>
<script type="text/javascript" src="{lib file=jquery.plugins/additional-methods.js}"></script>
{include file=login.popup.html}